unit swdkinput;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TFswdk = class(TForm)
    grp1: TGroupBox;
    btn1: TButton;
    lbl1: TLabel;
    edtsqdh: TEdit;
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure edtsqdhKeyPress(Sender: TObject; var Key: Char);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Fswdk: TFswdk;

implementation

{$R *.dfm}

procedure TFswdk.FormClose(Sender: TObject; var Action: TCloseAction);
begin
action:=cafree;
//Fswdk:=nil;
end;

procedure TFswdk.edtsqdhKeyPress(Sender: TObject; var Key: Char);
begin
if Key=#13 then
   btn1.Click;
end;

end.
